package com.tencreat.mall.controller.app;


import com.tencreat.common.core.HttpResult;
import com.tencreat.common.core.controller.BaseController;
import com.tencreat.domain.mall.MallSelfmention;
import com.tencreat.service.mall.IMallSelfmentionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Administrator
 */
@Api(tags = "97-自提地点接口")
@RequestMapping("/api/selfMention")
//@RestController
public class MallSelfMentionController extends BaseController {

    //@Autowired
    private IMallSelfmentionService selfmentionService;

    /**
     * 查询自提地点列表
     */
    @ApiOperation(value="查询自提地点列表")
    @PostMapping("/list")
    public HttpResult<List<MallSelfmention>> List() {
        return HttpResult.ok(selfmentionService.list());
    }


}
